﻿using System.ComponentModel;
using System.Web.UI;
using System.Web.UI.WebControls;
using AjaxControlToolkitCustom;

[assembly: System.Web.UI.WebResource("AjaxControlToolkit.WebControlLibrary.ImageButtonBehavior.js", "text/javascript")]

namespace AjaxControlToolkitCustom
{
	[Designer(typeof(DisabledButtonDesigner))]
	[ClientScriptResource("AjaxControlToolkit.ImageButtonBehavior", "AjaxControlToolkit.WebControlLibrary.ImageButtonBehavior.js")]
	[TargetControlType(typeof(TextBox))]
	public class ButtonImageExtender : ExtenderControlBase
	{
		[ExtenderControlProperty]
		[DefaultValue("")]
		[IDReferenceProperty(typeof(Button))]
		public string TargetButtonID
		{
			get
			{
				return GetPropertyValue("TargetButtonID", "");
			}
			set
			{
				SetPropertyValue("TargetButtonID", value);
			}
		}

		[ExtenderControlProperty]
		[DefaultValue("")]
		public string DisabledText
		{
			get
			{
				return GetPropertyValue("DisabledText", "");
			}
			set
			{
				SetPropertyValue("DisabledText", value);
			}
		}
	}
}
